<?php
function checkID($mail,$pwd) {
	$dbin = new DB();
	$check=0;
	$dbin->query("select count(*) as count
				from user as a 
				where a.mail=\"".mysql_real_escape_string($mail)."\" 
				and a.pwd=\"".mysql_real_escape_string(md5($pwd))."\"");
	
	while($dbin->fetch_assoc()){
		if($dbin->row['count']==1)
		{
			$check=1;
			//require("http://citron/~lhour/jypbook/profil.php");
		}
	}
	return $check;
}
//mysql_real_escape_string(

?>
